var FormAll = function () {

	elms=document.getElementsByTagName('input');
	for(var i=0;i<elms.length;i++){
		if(!elms[i].type.match(/checkbox|radio|password/))elms[i].className+=" text"
	}
	
	elms=document.getElementsByTagName('*');
	for(var i=0;i<elms.length;i++){
		if(elms[i].getAttribute('aria-invalid') == "true") {
			elms[i].className+=" invalid";
		}
		
	}
}();